class people
{
public:
	void fun(int a)
	{
		cout << "a = " << a << endl;
	};
};

int main(void)
{
	people p;
	std::thread t(&people::fun,&p, 1);
//  std::thread t(&people::fun, 1); // this for static function   , argument no need this pointer
// std::thread t(&people::fun, ref(q));  // for ref arg
	t.detach();
	cout << "234" << endl;
	return 0;
}
